package com.wuchao.service;

import com.wuchao.service.impl.EntryServiceImpl;
import com.wuchao.springs.aoppromax.Point;
import com.wuchao.springs.aoppromax.ShowEntry;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;


public class T {
    public static void main(String[] args) {//xml拆分合并
//        String name="";
        ClassPathXmlApplicationContext cpac =
               // new ClassPathXmlApplicationContext("ApplicationContextProMax.xml");
                new ClassPathXmlApplicationContext("ApplicationContextProMax.xml","ApplicationContextPro.xml");
        //装箱 拆箱 object--int
        ((EntryServiceImpl) cpac.getBean("entryServiceImpl"))
                .findEntryByCONCATTitle1("1").forEach(System.out::println);
        System.out.println("____________________________");
        ((EntryServiceImpl) cpac.getBean("entryServiceImpl"))
                .findEntryAndCategoryByCONCATTitleByCategoryId(1,5,"1",3)
                .getList().forEach(System.out::println);
    }
}
